<?php

ini_set('display_errors', 1);
ini_set('log_errors', 1);
ini_set('error_log', dirname(__FILE__) . '/error_log.txt');
error_reporting(E_ALL);
require_once("models/Dimension1Manager.php");
require_once("models/Dimension1.php");
require_once("include/connect_db.inc.php");
$manager = new Dimension1Manager($db);
$d1 = new Dimension1(array("refD1"=>"A", "titre"=>"PLANNIFIER"));
$lesD2 = $manager->getDimension2($d1->getRefD1());
        $d1->addDimension2($lesD2);


print_r($d1->getLesDimensions2());


?>
